#include <iostream>
using namespace std;

struct A {
	int data;
	/*const*/ int& foo(void) {
		return data;
	}
};

int main (void)
{
	A a = {0};
	//a.data = 123;
	a.foo() = 321;
	cout << a.data << endl;
	return 0;
}
